<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1> 测试 console 打印相关函数</h1>
    <script>
        console.log("log message");
        console.debug("debug message");
        console.clear();
        console.info("info message");
        console.warn("warn message");
        console.error("error message");
        const a = 2;
        console.assert(a === 1, "xxxxx");
        const users = [
            { name: "apple", age: 12, city: "Shanghai" },
            { name: "banana", age: 15, city: "GuangZhou" },
            { name: "pear", age: 11, city: "HangZhou" },
            ];
        console.table(users);
    </script>
</body>
</html>